import {
    HomeOutlined,
    PictureOutlined,
    UploadOutlined,
    ProfileOutlined,
    FilterOutlined,
    OrderedListOutlined,
    TeamOutlined,
    UserOutlined,
    SettingOutlined
} from '@ant-design/icons';

import {
    Home,
    Banner,
    BannerActive,
    BannerList,
    BannerAdd,
    Product,
    ProductSearch,
    ProductList,
    ProductHomeList,
    ProductCartList,
    ProductDetailList,
    Account,
    UserList,
    AdminList,
    Setting
} from '@/routers'
const menus = [
    {
        label: '首页',
        key: '/',
        icon: <HomeOutlined />,
        element: <Home />
    },
    {
        label: '轮播图管理',
        key: '/banner',
        icon: <UploadOutlined />,
        element: <Banner />,
        children: [
            {
                index:1,
                label: '首页轮播图',
                key: '/banner/home',
                icon: <PictureOutlined />,
                element: <BannerList />
            },
            {
                label: '活动页轮播图',
                key: '/banner/active',
                icon: <PictureOutlined />,
                element: <BannerActive />
            },
            {
                label: '添加轮播图',
                key: '/banner/add',
                icon: <PictureOutlined />,
                element: <BannerAdd />
            }
        ]
    },
    {
        label: '产品管理',
        key: '/pro',
        icon: <ProfileOutlined />,
        element: <Product />,
        children: [
            {
                index: 1,
                label: '产品列表',
                key: '/pro/list',
                icon: <OrderedListOutlined />,
                element: <ProductList />,
                children: [
                    {
                        index: 1,
                        label: '首页产品列表',
                        key: '/pro/list/home',
                        element: <ProductHomeList />,
                    },
                    {
                        label: '详情推荐列表',
                        key: '/pro/list/detail',
                        element: <ProductDetailList />,
                    },
                    {
                        label: '购物车推荐列表',
                        key: '/pro/list/cart',
                        element: <ProductCartList />,
                    },
                ]
            },
            {
                label: '筛选列表',
                key: '/pro/search',
                icon: <FilterOutlined />,
                element: <ProductSearch />
            },
        ]
    },
    {
        label: '账户管理',
        key: '/account',
        icon: <TeamOutlined />,
        element: <Account />,
        children: [
            {
                label: '用户列表',
                key: '/account/userlist',
                icon: <UserOutlined />,
                element: <UserList />,
            },
            {
                index: 1,
                label: '管理员列表',
                key: '/account/adminlist',
                icon: <UserOutlined />,
                element: <AdminList />,
            }
        ]
    },
    {
        label: '设置',
        key: '/setting',
        icon: <SettingOutlined />,
        element: <Setting />
    }
]

export default menus